<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>subject_search</title>
    <link href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
</head>
<body>
<br>
<div class="ui two column centered grid">
    <div class="column">
        关键字:&nbsp;<span style="font-size: xx-large;font-weight: bolder" th:text="${keyword}"></span><br>
        结果数:&nbsp;<span style="font-size: xx-large;font-weight: bolder" th:text="${num}"></span><br>
        <br>
        <button class="ui right button">
            <a href="/subject_index" style="color: red;" th:href="@{/subject_index}">返回</a>
        </button>
        <table class="ui celled table">
            <thead>
            <tr>
                <th>ID</th>
                <th>名称</th>
                <th>类别</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="subject,it:${subjectList}">
                <td th:text="${subject.id}"></td>
                <td th:text="${subject.name}"></td>
                <td th:text="${subject.type}"></td>
                <td>
                    <button class="ui small button">
                        <a href="/to_subject_update_search"
                           th:href="@{/to_subject_update_search(id=${subject.id},keyword=${keyword})}">更新</a>
                    </button>
                    <button class="ui small button">
                        <a href="/to_subject_delete_search" style="color: red;"
                           th:href="@{/to_subject_delete_search(id=${subject.id},keyword=${keyword})}">删除</a>
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>
